package com.ruoyi.wechat.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 微信公众号配置对象 wx_account
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WxAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 微信公众号AppId */
    @Excel(name = "微信公众号AppId")
    private String appId;

    /** 微信公众号AppSecret */
    @Excel(name = "微信公众号AppSecret")
    private String appSecret;

    /** 微信公众号Token */
    @Excel(name = "微信公众号Token")
    private String token;

    /** 微信公众号EncodingAESKey */
    @Excel(name = "微信公众号EncodingAESKey")
    private String aesKey;

    /** 微信访问令牌 */
    private String accessToken;

    /** Token过期时间 */
    private Date tokenExpireTime;

    /** JSAPI票据 */
    private String jsapiTicket;

    /** 票据过期时间 */
    private Date ticketExpireTime;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setAppSecret(String appSecret) 
    {
        this.appSecret = appSecret;
    }

    public String getAppSecret() 
    {
        return appSecret;
    }
    public void setToken(String token) 
    {
        this.token = token;
    }

    public String getToken() 
    {
        return token;
    }
    public void setAesKey(String aesKey) 
    {
        this.aesKey = aesKey;
    }

    public String getAesKey() 
    {
        return aesKey;
    }
    public void setAccessToken(String accessToken) 
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken() 
    {
        return accessToken;
    }
    public void setTokenExpireTime(Date tokenExpireTime) 
    {
        this.tokenExpireTime = tokenExpireTime;
    }

    public Date getTokenExpireTime() 
    {
        return tokenExpireTime;
    }
    public void setJsapiTicket(String jsapiTicket) 
    {
        this.jsapiTicket = jsapiTicket;
    }

    public String getJsapiTicket() 
    {
        return jsapiTicket;
    }
    public void setTicketExpireTime(Date ticketExpireTime) 
    {
        this.ticketExpireTime = ticketExpireTime;
    }

    public Date getTicketExpireTime() 
    {
        return ticketExpireTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("appSecret", getAppSecret())
            .append("token", getToken())
            .append("aesKey", getAesKey())
            .append("accessToken", getAccessToken())
            .append("tokenExpireTime", getTokenExpireTime())
            .append("jsapiTicket", getJsapiTicket())
            .append("ticketExpireTime", getTicketExpireTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
